package com.cn.test.record;

/**
 * description: 树节点
 *
 * @author twj
 * @date 2021/8/27 11:03 .
 */
public class TreeNode {

    int val;
    TreeNode left;
    TreeNode right;

    TreeNode() {
    }

    TreeNode(int val) {
        this.val = val;
    }

    TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }


    @Override
    public String toString() {
        return "rt>>" + val + " \nL>>" + left + "  R>>" + right;
    }
}
